# Contributor: Noel Kuntze <noel.kuntze@thermi.consulting>
# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>
pkgname=py3-requests-gssapi
_pkgname=requests-gssapi
pkgver=1.3.0
pkgrel=0
pkgdesc="GSSAPI (HTTP negotiate) authentication handler for Python Requests"
url="https://github.com/pythongssapi/requests-gssapi"
arch="noarch"
license="ISC"
depends="
	python3
	py3-python-gssapi
	py3-requests
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/r/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
a9d7acf213b3ecbbc45f6342964268247fc42d6bf341e9121a4e1d72cf43ef586df51df1a0efdbffb975aa5200e6e650b11e013c5df90a0d15b3cc6508da690c  py3-requests-gssapi-1.3.0.tar.gz
"
